<template>
  <div class="head-wrap">
    <div class="head-con">
      <ul>
        <li @click="chilCall('0')" :class="choose == '0' ? 'chooseColor': '' ">师傅信息</li>
        <li @click="chilCall('1')" :class="choose == '1' ? 'chooseColor': '' ">任务人员列表</li>
        <li @click="chilCall('2')" :class="choose == '2' ? 'chooseColor': '' ">个人中心</li>
        <li @click="chilCall('3')" :class="choose == '3' ? 'chooseColor': '' ">企业中心</li>
        <li @click="chilCall('4')" :class="choose == '4' ? 'chooseColor': '' ">院校主账号</li>
        <li @click="chilCall('5')" :class="choose == '5' ? 'chooseColor': '' "> 院校分账号</li>
      </ul>
      <img class="head-headImg" src="../assets/headImg.jpg" alt />
      <div class="head-operation">
        <span @click="chilCall('6')" :class="choose === '6' ? 'chooseColor': '' "> 
          andrew
        </span>|
        <span>返回</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
        choose: '0'
    };
  },

  methods: {
    chilCall(num) {
      this.choose = num;
      this.$emit("newNodeEvent", this.choose);
    }
  }
};
</script>

<style scoped>
/* 选中颜色 */

.chooseColor {
  color: #0087cf;
}
a {
  text-decoration: none;
  color: #000;
  outline: none;
}

.head-wrap {
  width: 100%;
  height: 120px;
  
  background-color: #fff;
}
.head-con {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  font-size: 22px;
  color: #000;
  background: url("../assets/logo.png") 100px center no-repeat;
  background-size: 127px 56px;
}

.head-con ul {
  display: flex;
  width: 60%;
  margin-left: 14%
}

.head-con ul li {
  list-style: none;
  
  width: 17%;
  text-align: center;
}
.head-con ul li:hover{
  cursor: pointer;
}
.head-headImg {
  width: 70px;
  height: 70px;
  margin: 0 20px;
  border-radius: 50%;
  background-color: #eeeeee;
}

.head-operation {
  font-size: 20px;
  color: #6e6e6e;
  float: right;
  margin-right: 100px
}

.head-operation span {
  padding: 0 10px;
}

.head-operation span:hover{
  cursor: pointer;
}
</style>
